//
//  Target_Web.m
//  CharonTVProject
//
//  Created by karong on 2023/7/5.
//

#import "Target_Web.h"
#import "WSWebController.h"

@implementation Target_Web

- (id)Action_web:(NSDictionary *)params {
    WSWebController * targetVC = (WSWebController *)[self instantiateViewControllerWithName:@"WSWebController"];
    targetVC.url = params[@"url"];
    targetVC.titleStr = APPLocalized(params[@"titleStr"]);
    targetVC.showNav = [params[@"showNav"] boolValue];
    targetVC.closeHandle = params[@"closeHandle"];
    return targetVC;
}

- (UIViewController *)instantiateViewControllerWithName:(NSString *)name {
   return [[UIStoryboard storyboardWithName:name bundle:nil] instantiateViewControllerWithIdentifier:name];
}

@end
